<?xml version="1.0" encoding="UTF-8"?>
<!--=======================================================================
/// <remarks>
/// Version:
///		- number:	0.0.3	
///		- build:	20060403
///		- status:	alpha
/// </remarks>
	======================================================================= -->

<!--=======================================================================
	Stylesheet: emailX.xsl
		- Base template to render the email message to html
	=======================================================================	-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<!--=======================
	Match templates section
	======================= -->
	<xsl:template match="/">
		<xsl:apply-templates/>
	</xsl:template>
	
	<xsl:template match="form">
		<html>
			<head>
				<xsl:call-template name="htmlStyle"/>
			</head>
			<body>
				<table>
					<tr>
						<th class="fld">Field name:</th>
						<th>Field value:</th>
					</tr>
					<xsl:apply-templates/>
				</table>
			</body>
		</html>
	</xsl:template>
	
	<xsl:template match="field">
		<tr>
			<td class="fld"><xsl:value-of select="@name"/>:</td>
			<td><xsl:value-of select="."/></td>
		</tr>
	</xsl:template>

<!--=======================
	Named templates section
	======================= -->
	<xsl:template name="htmlStyle">
		<style type="text/css">
			<xsl:comment>
				<xsl:text disable-output-escaping="yes"><![CDATA[
					body{margin:0px;padding:0px;};
					h1,h2,h3,h4,li{font-family:trebuchet ms;};
					body,span,table,td,tr,input,p,textarea,ul,div{color:#333;;font-size:11px;font-family:verdana;}
					td,th{text-align:left;}
					.fld{text-align:right;}
				]]></xsl:text>
			</xsl:comment>
		</style>
	</xsl:template>	
<!--=========================
	Utility templates section
	========================= -->
	
</xsl:stylesheet>